x86emul: centralize put_fpu() invocations
authorJan Beulich <jbeulich@suse.com>
Tue, 21 Mar 2017 14:10:25 +0000 (15:10 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 21 Mar 2017 14:10:25 +0000 (15:10 +0100)
commit9b7c3fabbc942624dead58e3743556b7af4910be
tree50a7959a8143d58555ea07693985de8f1105fb99
parent69f4633817c38655cd27aa62c3cbfc02f6627234
x86emul: centralize put_fpu() invocations

..., splitting parts of it into check_*() macros. This is in
preparation of making ->put_fpu() do further adjustments to register
state. (Some of the check_xmm() invocations could be avoided, as in
some of the cases no insns handled there can actually raise #XM, but I
think we're better off keeping them to avoid later additions of further
insn patterns rendering the lack of the check a bug.)

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/x86_emulate/x86_emulate.c
xen/arch/x86/x86_emulate/x86_emulate.h